Hệ thống quản lý phòng khám trực tuyến bằng PHP

1 <?php
2 define(
'PREPEND_PATH','../');
3 include(
"../defaultLang.php"); //1
4 include(
"../language.php"); //2
5 include(
"../lib.php"); //3
6 //
this is the core file of the appGini
7 include_once(
"../header.php");
8 if
(isset($_REQUEST['dvprint_x']))
9     
return;
10 $word = $_REQUEST[
'search']; // 3shan 2t2d in intger bs acept
11 $patients_table = get_sql_from(
'patients');
12 $result = sql(
"SELECT DISTINCT * FROM patients RIGHT OUTER JOIN events ON patients.id = events.name_patient
13 WHERE events.diagnosis LIKE '%"
. $word . "%' ", $e0);
14
15 ?>
16
17
18 <div
class="input-group">
19     <span
class="input-group-btn">
20         <a href=
"reports.php" class="btn btn-info hidden-print btn btn-secondary" role="button">Back to Reports</a>
21     </span>
22     <button
class="btn btn-primary hidden-print" type="button" id="sendToPrinter" onclick="window.print();"><i class="glyphicon glyphicon-print"></i> Print</button>
23 </div>
24
25
26
27 <div style=
"height: 90px"></div>
28
29
30 <?php
if(db_num_rows($result)){?>
31 <table
class="table table-striped table-bordered">
32     <thead>
33
34
35
36
37     <th
class="text-center" style="color:#0066ff ; font-size: 15px"> Name</th>
38     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Age</th>
39     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Home Phone</th>
40     <th
class="text-center" style="color:#0066ff ; font-size: 15px">Work Phone</th>
41     <th
class="text-center" style="color:#0066ff ; font-size: 15px"> Image</th>
42     <th
class="text-center" style="color:#0066ff ; font-size: 15px" > Gender</th>
43     <th
class="text-center" style="color:#0066ff ; font-size: 15px">State</th>
44     <th
class="text-center" style="color:#0066ff ; font-size: 15px">diagnosis</th>
45 </thead>
46
47 <tbody>
48 <?php
while ($order = db_fetch_assoc($result)) { ?>
49         <tr>
50             <td
class="text-left"><a href="patients_view.php?SelectedID=<?= $order['name_patient'] ?>"><?php echo $order['last_name']; ?> <?php echo " , " . $order['first_name']; ?></a></td>
51             <td
class="text-right"><?php echo $order['age']; ?></td>
52             <td
class="text-right"><?php echo $order['home_phone']; ?></td>
53             <td
class="text-right"><?php echo $order['work_phone']; ?></td>
54             <td
class="text-center">
55     <?php
if ($order['image']) {
56         ?>
57                     <img src=
"../images/<?php echo $order['image']; ?>" alt="Smiley face" height="42" width="42">
58                 <?php }
59                 ?>
60
61             </td>
62             <td
class="text-left"><?php echo $order['gender']; ?></td>
63             <td
class="text-left"><?php echo $order['state']; ?></td>
64             <td
class="text-left"><?php echo $order['diagnosis']; ?></td>
65
66
67
68         </tr>
69 <?php } ?>
70
71 </tbody>
72
73 </table>
74
75
76 <?php }
else{
77     echo
'<div class="alert alert-danger">' . $Translation['No records found']. '</div>';
78 }?>
79 <?php
80 include_once(
"$currDir/footer.php"); // include the footer file
81 ?>


Gõ tìm kiếm nhanh...